<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>




<!DOCTYPE html>
<!--[if IE 6 ]> <html class="ie6 lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 6 ]> <html class="lte_ie6 lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 7 ]> <html class="lte_ie7 lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 8 ]> <html class="lte_ie8 lte_ie9"> <![endif]-->
<!--[if lte IE 9 ]> <html class="lte_ie9"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--><html><!--<![endif]-->
<head>
    <title>档案详情</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="/lib/pagination/style/pagination.css">
    <link rel="stylesheet" href="/css/base/base.css?20201106.1">
    <link rel="stylesheet" type="text/css" href="../../../css/style.css" />
    <script type="text/javascript" src="../../../js/jquery/jquery-1.9.1.js"></script>
    <script src="../../../js/news/page.js"></script>
    <script src="../../../lib/laydate/laydate.js"></script>
    <script src="../../../js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../lib/pagination/js/jquery.pagination.min.js" type="text/javascript" charset="utf-8"></script>

    <link rel="stylesheet" type="text/css" href="../../../css/news/new_news.css"/>

    <script type="text/javascript" >

    </script>
    <style>
        body{
            font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
        }
        .TableBlock .TableData td, .TableBlock td.TableData{
            border-top: 1px solid #606275;
        }
        .TableBlock{
            margin: 0 auto;
        }
        table{
            table-layout: inherit;
        }
        ul,li{
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .tit{
            background: #eee !important;
        }
        .noData{
            width: 100%;
        }
        .noData .bgImg{
            width: 360px;
            height: 150px;
            margin: 100px auto;
            background-color: #357ece;
            border-radius: 10px;
            box-shadow: 3px 3px 3px #2F5C8F;
            overflow: hidden;
            text-align: center;
        }
        .noData .bgImg .IMG {
            float: left;
            width: 75px;
            height: 75px;
            margin-top: 37px;
            margin-left: 30px;
        }
        .noData .bgImg .TXT {
            float: left;
            color: #fff;
            font-size: 16pt;
            margin-top: 60px;
            margin-left: 20px;
        }
        .noData .bgImg .IMG img {
            width: 100%;
        }
        .divBtns{
            width: 110px;
            margin: 0 auto;
        }
        .divBtns div{
            color: #FFF;
            font-size: 14px;
            width: 50px;
            height: 28px;
            line-height: 28px;
            background-color: rgb(0, 162, 212);
            text-align: center;
            border-radius: 3px;
            margin: 10px auto;
            cursor: pointer;
            float: left;
        }
        .divTitle{
            width: 100%;
            height: 40px;
            line-height: 40px;
        }
        .relewantInfo{
            width: 90%;
            height: 400px;
            position: absolute;
            z-index: 10;
            border: #ccc 1px solid;
            background: #ffffff;
            left: 5%;
            border-radius: 5px;
        }
        .relewanUl{
            width: 100%;
            height: 40px;
            /*box-shadow: #ccc 10px 10px 10px;*/
            border-bottom: #ccc 1px solid;
        }
        .relewanUl li{
            height: 28px;
            line-height: 28px;
            display: inline-block;
            float: left;
            font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
            font-size: 14px;
            /*margin-left: 20px;*/
            margin-top: 6px;
            cursor: pointer;
        }
        .relewanUl li img{
            width: 2px;
            height: 28px;
            vertical-align: middle;
            margin-left: 10px;
        }
        .headli1_1{
            display: inline-block;
            height: 28px;
            line-height: 28px;
            padding: 0 20px;
            margin-left: 10px;
        }
        .on{
            background: #138eee;
            color: #fff;
            border-radius: 20px;
        }
        .relewanUl li:hover .headli1_1{
            background: #138eee;
            color: #fff;
            border-radius: 20px;
        }
        .contBox{
            width: 100%;
        }
        .boxTitle{
            height: 28px;
            line-height: 28px;
            margin-left: 20px;
            font-size: 11pt;
        }
        .btnNew{
            width: 120px;
            height: 30px;
            line-height: 30px;
            font-size: 10pt;
            background: #2b7fe0;
            color: #ffffff;
            border-radius: 4px;
            text-align: center;
            margin: 10px auto;
            cursor: pointer;
        }
        .cDivTbale{
            width: 96%;
            margin: 0 auto;
        }
        .cDivTbale tr{
            border: #ccc 1px solid;
        }
        .cDivTbale tr th{
            padding: 8px;
            color: #2F5C8F;
            font-size: 11pt;
            font-weight: bold;
        }
        .cDivTbale tr td{
            padding: 0px;
            font-size: 10pt;
            text-align: center;
        }
    </style>


</head>


<script type="text/javascript" src="/inc/js_lang.php"></script>
<script type="text/javascript" src="/static/js/attach.js"></script>
<script type="text/javascript" src="/js/hr/detailsPage.js"></script>
<link rel="stylesheet" type="text/css" href="/css/commonTheme/${sessionScope.InterfaceModel}/commonTheme.css"/>
<body class="bodycolor">
<div class="rig">
    <div class="table_personDetail" id="table_personDetail" style="display: block;position: relative;">
        <div class="divTitle">
            <span style="margin-left: 20px;font-size: 13pt;">人员档案</span><span class="spanName" style="    margin: 0 10px;font-size: 13pt;"></span>
            <a href="javascript:;" class="xiangguanxinxi" style="margin-right: 10px;">相关信息</a>
            <a href="javascript:;" class="lookWupin">查看领用物品</a>
        </div>
        <div class="relewantInfo" style="display: none;">
            <div class="relewanUl">
                <ul>
                    <li data-num="0" class="item1"><span class="headli1_1 on">合同</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="1" class="item1"><span class="headli1_1">奖惩</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="2" class="item1"><span class="headli1_1">证照</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="3" class="item1"><span class="headli1_1">学习</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="4" class="item1"><span class="headli1_1">工作</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="5" class="item1"><span class="headli1_1">技能</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="6" class="item1"><span class="headli1_1">关系</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="7" class="item1"><span class="headli1_1">调动</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="8" class="item1"><span class="headli1_1">离职</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="9" class="item1"><span class="headli1_1">复职</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="10" class="item1"><span class="headli1_1">职称</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="11" class="item1"><span class="headli1_1">关怀</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="12" class="item1"><span class="headli1_1">培训</span><img class="" src="../../img/twoth.png" alt=""></li>
                    <li data-num="13" class="item2"><span class="headli1_1">关闭</span></li>
                </ul>
            </div>
            <div class="contBox">
                <div class="boxTitle">
                    <span class="boxText">个人合同</span>
                </div>
                <div class="contTable">
                    <div class="btnNew" data-type="0">新建合同信息</div>
                    <table id="divTable" class="cDivTbale" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse;">
                        <%--<tr>--%>
                            <%--<th>单位员工</th>--%>
                            <%--<th>奖惩项目</th>--%>
                            <%--<th>奖惩日期</th>--%>
                            <%--<th>奖惩属性</th>--%>
                            <%--<th>奖惩金额</th>--%>
                            <%--<th>操作</th>--%>
                        <%--</tr>--%>
                        <%--<tr>--%>
                            <%--<td>系统管理员</td>--%>
                            <%--<td>不迟到不早退</td>--%>
                            <%--<td>2018-08-22</td>--%>
                            <%--<td>奖励</td>--%>
                            <%--<td>100</td>--%>
                            <%--<td><a href="javascript:;" style="margin-right: 10px;">详细信息</a><a href="javascript:;">编辑</a></td>--%>
                        <%--</tr>--%>
                        <%--<tr>--%>
                            <%--<td>系统管理员</td>--%>
                            <%--<td>不迟到不早退</td>--%>
                            <%--<td>2018-08-22</td>--%>
                            <%--<td>奖励</td>--%>
                            <%--<td>100</td>--%>
                            <%--<td><a href="javascript:;" style="margin-right: 10px;">详细信息</a><a href="javascript:;">编辑</a></td>--%>
                        <%--</tr>--%>
                        <%--<tr>--%>
                            <%--<td>系统管理员</td>--%>
                            <%--<td>不迟到不早退</td>--%>
                            <%--<td>2018-08-22</td>--%>
                            <%--<td>奖励</td>--%>
                            <%--<td>100</td>--%>
                            <%--<td><a href="javascript:;" style="margin-right: 10px;">详细信息</a><a href="javascript:;">编辑</a></td>--%>
                        <%--</tr>--%>
                        <%--<tr>--%>
                            <%--<td>系统管理员</td>--%>
                            <%--<td>不迟到不早退</td>--%>
                            <%--<td>2018-08-22</td>--%>
                            <%--<td>奖励</td>--%>
                            <%--<td>100</td>--%>
                            <%--<td><a href="javascript:;" style="margin-right: 10px;">详细信息</a><a href="javascript:;">编辑</a></td>--%>
                        <%--</tr>--%>
                        <%--<tr>--%>
                            <%--<td>系统管理员</td>--%>
                            <%--<td>不迟到不早退</td>--%>
                            <%--<td>2018-08-22</td>--%>
                            <%--<td>奖励</td>--%>
                            <%--<td>100</td>--%>
                            <%--<td><a href="javascript:;" style="margin-right: 10px;">详细信息</a><a href="javascript:;">编辑</a></td>--%>
                        <%--</tr>--%>
                    </table>
                    <div class="right" style="margin-right: 2%;">
                        <!-- 分页按钮-->
                        <div class="M-box3" id="dbgz_pagesd"></div>
                    </div>
                </div>
            </div>
        </div>
        <table class="TableBlock biaoge" width="80%" align="center">
            <tbody>
            <tr>
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;<fmt:message code="url.th.EssentialInformation" /></b></td>
            </tr>
            <tr >
                <td nowrap="" class="TableData text_width test_text tit"      >OA<fmt:message code="global.lang.user" />：</td>
                <td class="TableData con" colspan="2"  id="byName">
                </td>
                <td class="TableData" align="center" rowspan="5" colspan="3">
                    <p class="hr_photo"><fmt:message code="hr.th.NoPhotos" /></p>
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width test_text tit" ><fmt:message code="hr.th.department" />：</td>
                <td class="TableData con"   colspan="2" id="deptName">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width test_text tit" >  <fmt:message code="userManagement.th.role" />：</td>
                <td class="TableData con"   colspan="2" id="userPrivName">

                </td>
            </tr>

            <tr>
                <td nowrap="" class="TableData text_width test_text tit"><fmt:message code="userDetails.th.name" />：</td>
                <td class="TableData con" colspan="2" id="staffName">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.EnglishName" />：</td>
                <td class="TableData con" colspan="2" id="staffEName"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.JobNumber" />：</td>
                <td class="TableData con" colspan="2" id="workNo"></td>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.number" />：</td>
                <td class="TableData dept con" colspan="2"  id="staffNo">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.NameUsedBefore" />：</td>
                <td class="TableData con" colspan="2" id="beforeName"></td>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="userDetails.th.Gender" />：</td>
                <td class="TableData con"colspan="2" title="<fmt:message code="hr.th.ID" />" id="staffSex">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.IDNumber" />：</td>
                <td class="TableData con" colspan="2" id="staffCardNo">

                </td>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.DateOfBirth" />：</td>
                <td class="TableData con" colspan="2" title="<fmt:message code="hr.th.ID"/>">
                    <span id="staffBirth"></span>
                   <span id="IS_LUNAR"></span>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.Age" />：</td>
                <td class="TableData con" colspan="2" title="<fmt:message code="hr.th.ID" />"><span id="age"></span><span style="margin-left: 4px;font-size:12px;line-height: 28px;"><fmt:message code="hr.th.year" /></span></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.annualLeave" />：</td>
                <td class="TableData con" colspan="2" id="leaveType">

            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.PlaceOfOrigin" />：</td>
                <td class="TableData con" colspan="2" nowrap="" id="staffNativePlace">

                </td>
                <td nowrap="" class="TableData text_width tit"  style="padding-right: 8px;"><fmt:message code="url.th.Zodiac" /> : </td>
                <td colspan="2" class="TableData con" title="<fmt:message code="url.th.Zodiac" />" id="zodiac">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" style="padding-right: 8px;"><fmt:message code="url.th.constellation" /> : </td>
                <td class="TableData con" colspan="5" title="<fmt:message code="url.th.constellation" />" id="constellation">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" style="padding-right: 8px;"><fmt:message code="url.th.BloodType" /> : </td>
                <td class="TableData con" id="bloodType" colspan="2">

                </td>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.Nation" />：</td>
                <td class="TableData con" colspan="2" id="staffNationality"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.MaritalStatus" />：</td>
                <td class="TableData con"  colspan="2" id="staffMaritalStatus">

                </td>
                <td nowrap="" class="TableData text_width tit" width="100"><fmt:message code="hr.th.Health" />：</td>
                <td class="TableData con" colspan="2" id="staffHealth"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.PoliticalOutlook" />：</td>
                <td class="TableData con"  colspan="2" id="staffPoliticalStatusName">
                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.PartyMembershipTime" />：</td>
                <td class="TableData con" colspan="2" id="joinPartyTime">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"><fmt:message code="hr.th.Household" />：</td>
                <td class="TableData con" id="staffType" colspan="2">

                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.RegisteredResidence" />：</td>
                <td class="TableData con"  colspan="2" id="staffDomicilePlace"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;<fmt:message code="hr.th.Position" />：</b></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.TypeWork" />：</td>
                <td class="TableData con"  colspan="2" id="workType"></td>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.AdministrativeLevel" />：</td>
                <td class="TableData con" colspan="2"  id="administrationLevel"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.EmployeeType" />：</td>
                <td class="TableData con" colspan="2" id="staffOccupation">

                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.InductionTime" />：</td>
                <td class="TableData con" colspan="2" id="datesEmployed">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.post" />：</td>
                <td nowrap="" class="TableData con" colspan="2" id="workJobStr">
                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.Incumbency" />：</td>
                <td class="TableData con"  colspan="2" id="workStatus">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ContactNumber" />：</td>
                <td class="TableData con"  colspan="2" id="staffPhone"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.AttendanceSchedulingType" />：</td>
                <td nowrap=""   colspan="2" class="TableData con" id="dutyType">


                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="userDetails.th.post" />：</td>
                <td class="TableData con"  colspan="2" style="text-align: left;" id="jobPosition"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.Title" />：</td>
                <td class="TableData con"  colspan="2" id="presentPosition">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="vote.th.JobLevel" />：</td>
                <td class="TableData con"  colspan="2" id="userdef5">
                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.TitleLevel" />：</td>
                <td class="TableData con" colspan="2" id="workLevel">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.LengthUnit" />：</td>
                <td class="TableData con" colspan="2" id="jobAge"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.StartingSalary" />：</td>
                <td class="TableData con" colspan="2" id="beginSalsryTime">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.TotalLengthOfService" />：</td>
                <td class="TableData con"  colspan="2" id="workAge"></td>
                <td nowrap="" class="TableData text_width test_text tit" ><fmt:message code="hr.th.WorkingHours" />：</td>
                <td class="TableData con"  colspan="2" id="jobBeginning">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.PhoneNumber" />：</td>
                <td class="TableData con"  colspan="2" id="staffMobile"></td>
                <td nowrap="" class="TableData text_width tit" >MSN：</td>
                <td class="TableData con" colspan="2" id="staffMsn"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="main.email" />：</td>
                <td class="TableData con"  colspan="2" id="staffEmail"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.HomeAddress" />：</td>
                <td class="TableData con" colspan="2" id="homeAddress"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" >QQ：</td>
                <td class="TableData con"  colspan="2" id="staffQq"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.OtherInformation" />：</td>
                <td class="TableData con"  colspan="2" id="otherContact"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit">  <fmt:message code="hr.th.IsExpert" />：</td>
                <td class="TableData con" id="isExperts" colspan="2"></td>
                <td nowrap="" class="TableData text_width tit"> <fmt:message code="hr.th.researchField" />：</td>
                <td class="TableData con"  colspan="2" id="researchResults1">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"> <fmt:message code="hr.th.SocialAppointments" />：</td>
                <td class="TableData con" colspan="2" id="partTime">
                </td>
                <td nowrap="" class="TableData text_width tit">  <fmt:message code="hr.th.AchievementIntroduction" />：</td>
                <td class="TableData con"  colspan="2" id="researchResults">

                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"> <fmt:message code="hr.th.ImmediateSuperior" />：</td>
                <td nowrap="" class="TableData con" colspan="2" id="directlySuperior">
                </td>
                <td nowrap="" class="TableData text_width tit"> <fmt:message code="hr.th.SubordinateSubordinate" />：</td>
                <td nowrap="" class="TableData con"  colspan="2" id="directlyUnder">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.OpeningBank" />1：</td>
                <td class="TableData con"  colspan="2" id="bank1"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.account" />1：</td>
                <td class="TableData con"  colspan="2" id="bankAccount1"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.OpeningBank" />2：</td>
                <td class="TableData con"  colspan="2" id="bank2"></td>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.account" />2：</td>
                <td class="TableData con"  colspan="2" id="bankAccount2"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableHeader" colspan="6"><b>&nbsp;<fmt:message code="hr.th.educationalBackground" />：</b></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width test_text tit"  ><fmt:message code="hr.th.Education" />：</td>
                <td class="TableData con"  colspan="2" id="staffHighestSchool">
                </td>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.AcademicDegree" />：</td>
                <td class="TableData con" colspan="2" id="staffHighestDegree">
                </td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit"  ><fmt:message code="hr.th.GraduationTime" />：</td>
                <td class="TableData con"  colspan="2" id="graduationDate">
                </td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ComputerLevel" />：</td>
                <td class="TableData con" colspan="2" id="computerLevel"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.GraduationSchool" />：</td>
                <td class="TableData con" colspan="2" id="graduationSchool"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.major" />：</td>
                <td class="TableData con" colspan="2" id="staffMajor"></td>

            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguage" />1：</td>
                <td class="TableData con" colspan="2" id="foreignLanguage1"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguageProficiency" />1：</td>
                <td class="TableData con" colspan="2" id="foreignLevel1"></td>

            </tr>
            <tr>

                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguage" />2：</td>
                <td class="TableData con" colspan="2" id="foreignLanguage2"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguageProficiency" />2：</td>
                <td class="TableData con" colspan="2" id="foreignLevel2"></td>

            </tr>
            <tr>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguage" />3：</td>
                <td class="TableData con"  id="foreignLanguage3" colspan="2"></td>
                <td nowrap="" class="TableData text_width tit" ><fmt:message code="hr.th.ForeignLanguageProficiency" />3：</td>
                <td class="TableData con" colspan="2" id="foreignLevel3"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableData tit" width="100" ><fmt:message code="hr.th.Specialty" />：</td>
                <td class="TableData con"  colspan="5" id="staffSkills"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableHeader " colspan="3"><b>&nbsp;<fmt:message code="hr.th.JobStatus" />：</b></td>
                <td nowrap="" class="TableHeader " colspan="3"><b>&nbsp;<fmt:message code="HR.TH.WarrantyRecord" />：</b></td>
            </tr>
            <tr>
                <td class="TableData con" colspan="3" style="text-align: left;" id="certificate"></td>
                <td class="TableData con" colspan="3" id="surety"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableHeader " colspan="3"><b>&nbsp;<fmt:message code="HR.TH.SocialPayment" />：</b></td>
                <td nowrap="" class="TableHeader " colspan="3"><b>&nbsp;<fmt:message code="HR.TH.PhysicalRecord" />：</b></td>
            </tr>
            <tr>
                <td class="TableData con" colspan="3" style="text-align: left;" id="insure"></td>
                <td class="TableData con" colspan="3" id="bodyExamim"></td>
            </tr>
            <tr>
                <td nowrap="" align="left" colspan="6" class="TableHeader"><b>&nbsp; <fmt:message code="journal.th.Remarks" />：</b></td>
            </tr>
            <tr>
                <td style="text-align: left;" nowrap="" class="TableData con" colspan="6" id="remark"></td>
            </tr>
            <tr>
                <td nowrap="" class="TableHeader " colspan="6"> <b>&nbsp; <fmt:message code="HR.TH.resume" />：</b></td>
            </tr>
            <tr>
                <td colspan="6" class="con" id="resume">

                </td>
            </tr>
            </tbody>
        </table>
        <div class="divBtns">
            <div class="divClose" style="display: none;">关闭</div>
            <div class="divPrint" style="display: block;">打印</div>
        </div>
    </div>
    <div class="noData" style="display: none;">
        <div class="bgImg">
            <div class="IMG">
                <img src="/img/sys/icon64_info.png">
            </div>
            <div class="TXT" id="TXT">该用户未建档</div>
        </div>
    </div>
</div>
</body>
    <script>
        /**用法
         * Lunar.toSolar(2016, 6, 3); 农历转化公历
         * Lunar.toLunar(2016, 7, 6); 公历转化农历
         */
        var Lunar = {
            MIN_YEAR : 1891,
            MAX_YEAR : 2100,
            lunarInfo : [
                [0,2,9, 21936], [6,1,30, 9656], [0,2,17, 9584], [0,2,6, 21168], [5,1,26,43344], [0,2,13,59728],
                [0,2,2, 27296], [3,1,22,44368], [0,2,10,43856], [8,1,30,19304], [0,2,19,19168], [0,2,8, 42352],
                [5,1,29,21096], [0,2,16,53856], [0,2,4, 55632], [4,1,25,27304], [0,2,13,22176], [0,2,2, 39632],
                [2,1,22,19176], [0,2,10,19168], [6,1,30,42200], [0,2,18,42192], [0,2,6, 53840], [5,1,26,54568],
                [0,2,14,46400], [0,2,3, 54944], [2,1,23,38608], [0,2,11,38320], [7,2,1, 18872], [0,2,20,18800],
                [0,2,8, 42160], [5,1,28,45656], [0,2,16,27216], [0,2,5, 27968], [4,1,24,44456], [0,2,13,11104],
                [0,2,2, 38256], [2,1,23,18808], [0,2,10,18800], [6,1,30,25776], [0,2,17,54432], [0,2,6, 59984],
                [5,1,26,27976], [0,2,14,23248], [0,2,4, 11104], [3,1,24,37744], [0,2,11,37600], [7,1,31,51560],
                [0,2,19,51536], [0,2,8, 54432], [6,1,27,55888], [0,2,15,46416], [0,2,5, 22176], [4,1,25,43736],
                [0,2,13, 9680], [0,2,2, 37584], [2,1,22,51544], [0,2,10,43344], [7,1,29,46248], [0,2,17,27808],
                [0,2,6, 46416], [5,1,27,21928], [0,2,14,19872], [0,2,3, 42416], [3,1,24,21176], [0,2,12,21168],
                [8,1,31,43344], [0,2,18,59728], [0,2,8, 27296], [6,1,28,44368], [0,2,15,43856], [0,2,5, 19296],
                [4,1,25,42352], [0,2,13,42352], [0,2,2, 21088], [3,1,21,59696], [0,2,9, 55632], [7,1,30,23208],
                [0,2,17,22176], [0,2,6, 38608], [5,1,27,19176], [0,2,15,19152], [0,2,3, 42192], [4,1,23,53864],
                [0,2,11,53840], [8,1,31,54568], [0,2,18,46400], [0,2,7, 46752], [6,1,28,38608], [0,2,16,38320],
                [0,2,5, 18864], [4,1,25,42168], [0,2,13,42160], [10,2,2,45656], [0,2,20,27216], [0,2,9, 27968],
                [6,1,29,44448], [0,2,17,43872], [0,2,6, 38256], [5,1,27,18808], [0,2,15,18800], [0,2,4, 25776],
                [3,1,23,27216], [0,2,10,59984], [8,1,31,27432], [0,2,19,23232], [0,2,7, 43872], [5,1,28,37736],
                [0,2,16,37600], [0,2,5, 51552], [4,1,24,54440], [0,2,12,54432], [0,2,1, 55888], [2,1,22,23208],
                [0,2,9, 22176], [7,1,29,43736], [0,2,18, 9680], [0,2,7, 37584], [5,1,26,51544], [0,2,14,43344],
                [0,2,3, 46240], [4,1,23,46416], [0,2,10,44368], [9,1,31,21928], [0,2,19,19360], [0,2,8, 42416],
                [6,1,28,21176], [0,2,16,21168], [0,2,5, 43312], [4,1,25,29864], [0,2,12,27296], [0,2,1, 44368],
                [2,1,22,19880], [0,2,10,19296], [6,1,29,42352], [0,2,17,42208], [0,2,6, 53856], [5,1,26,59696],
                [0,2,13,54576], [0,2,3, 23200], [3,1,23,27472], [0,2,11,38608], [11,1,31,19176],[0,2,19,19152],
                [0,2,8, 42192], [6,1,28,53848], [0,2,15,53840], [0,2,4, 54560], [5,1,24,55968], [0,2,12,46496],
                [0,2,1, 22224], [2,1,22,19160], [0,2,10,18864], [7,1,30,42168], [0,2,17,42160], [0,2,6, 43600],
                [5,1,26,46376], [0,2,14,27936], [0,2,2, 44448], [3,1,23,21936], [0,2,11,37744], [8,2,1, 18808],
                [0,2,19,18800], [0,2,8, 25776], [6,1,28,27216], [0,2,15,59984], [0,2,4, 27424], [4,1,24,43872],
                [0,2,12,43744], [0,2,2, 37600], [3,1,21,51568], [0,2,9, 51552], [7,1,29,54440], [0,2,17,54432],
                [0,2,5, 55888], [5,1,26,23208], [0,2,14,22176], [0,2,3, 42704], [4,1,23,21224], [0,2,11,21200],
                [8,1,31,43352], [0,2,19,43344], [0,2,7, 46240], [6,1,27,46416], [0,2,15,44368], [0,2,5, 21920],
                [4,1,24,42448], [0,2,12,42416], [0,2,2, 21168], [3,1,22,43320], [0,2,9, 26928], [7,1,29,29336],
                [0,2,17,27296], [0,2,6, 44368], [5,1,26,19880], [0,2,14,19296], [0,2,3, 42352], [4,1,24,21104],
                [0,2,10,53856], [8,1,30,59696], [0,2,18,54560], [0,2,7, 55968], [6,1,27,27472], [0,2,15,22224],
                [0,2,5, 19168], [4,1,25,42216], [0,2,12,42192], [0,2,1, 53584], [2,1,21,55592], [0,2,9, 54560]
            ],
            //是否闰年
            isLeapYear : function(year) {
                return ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0));
            },
            //天干地支年
            lunarYear : function(year) {
                var gan = ['庚', '辛', '壬', '癸', '甲', '乙', '丙', '丁', '戊', '己'],
                    zhi = ['申', '酉', '戌', '亥', '子', '丑', '寅', '卯', '辰', '巳', '午', '未'],
                    str = year.toString().split("");
                return gan[str[3]] + zhi[year % 12];
            },
            //生肖年
            zodiacYear : function(year) {
                var zodiac = ['猴', '鸡', '狗', '猪', '鼠', '牛', '虎', '兔', '龙', '蛇', '马', '羊'];
                return zodiac[year % 12];
            },
            //公历月份天数
            //@param year 阳历-年
            //@param month 阳历-月
            solarMonthDays : function(year, month) {
                var FebDays = this.isLeapYear(year) ? 29 : 28;
                var monthHash = ['', 31, FebDays, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
                return monthHash[month];
            },
            //农历月份天数
            lunarMonthDays : function(year, month) {
                var monthData = this.lunarMonths(year);
                return monthData[month - 1];
            },
            //农历月份天数数组
            lunarMonths : function(year) {
                var yearData = this.lunarInfo[year - this.MIN_YEAR];
                var leapMonth = yearData[0];
                var bit = (+yearData[3]).toString(2);
                var months = [];
                for (var i = 0; i < bit.length; i++) {
                    months[i] = bit.substr(i, 1);
                }

                for (var k = 0, len = 16 - months.length; k < len; k++) {
                    months.unshift('0');
                }

                months = months.slice(0, (leapMonth == 0 ? 12 : 13));
                for (var i = 0; i < months.length; i++) {
                    months[i] = +months[i] + 29;
                }
                return months;
            },
            //农历每年的天数
            //@param year 农历年份
            lunarYearDays : function(year) {
                var monthArray = this.lunarYearMonths(year);
                var len = monthArray.length;
                return (monthArray[len-1] == 0 ? monthArray[len-2] : monthArray[len-1]);
            },
            //
            lunarYearMonths : function(year) {
                var monthData = this.lunarMonths(year);
                var res = [];
                var temp = 0;
                var yearData = this.lunarInfo[year - this.MIN_YEAR];
                var len = (yearData[0] == 0 ? 12 : 13);
                for (var i = 0; i < len; i++) {
                    temp = 0;
                    for (j = 0; j <= i; j++) {
                        temp += monthData[j];
                    }
                    res.push(temp);
                }
                return res;
            },
            //获取闰月
            //@param year 农历年份
            leapMonth : function(year){
                var yearData = this.lunarInfo[year - this.MIN_YEAR];
                return yearData[0];
            },
            //计算农历日期与正月初一相隔的天数
            betweenLunarDays : function(year, month, day) {
                var yearMonth = this.lunarMonths(year);
                var res = 0;
                for (var i = 1; i < month; i++) {
                    res += yearMonth[i-1];
                }
                res += day - 1;
                return res;
            },
            //计算2个阳历日期之间的天数
            //@param year 阳历年
            //@param month
            //@param day
            //@param l_month 阴历正月对应的阳历月份
            //@param l_day  阴历初一对应的阳历天
            betweenSolarDays : function(year, month, day, l_month, l_day) {
                var time1 = new Date(year +"-"+ month +"-"+ day).getTime(),
                    time2 = new Date(year +"-"+ l_month +"-"+ l_day).getTime();
                return Math.ceil((time1-time2)/24/3600/1000);
            },
            //根据距离正月初一的天数计算阴历日期
            //@param year 阳历年
            //@param between 天数
            lunarByBetween : function(year, between) {
                var lunarArray = [], yearMonth = [], t = 0, e = 0, leapMonth = 0, m = '';
                if (between == 0) {
                    t = 1;
                    e = 1;
                    m = '正月';
                } else {
                    year = between > 0 ? year : (year - 1);
                    yearMonth = this.lunarYearMonths(year);
                    leapMonth = this.leapMonth(year);
                    between  = between > 0 ? between : (this.lunarYearDays(year) + between);
                    for (var i = 0; i < 13; i++) {
                        if (between == yearMonth[i]) {
                            t = i + 2;
                            e = 1;
                            break;
                        } else if (between < yearMonth[i]) {
                            t = i + 1;
                            e = between - ((yearMonth[i-1]) ? yearMonth[i-1] : 0) + 1;
                            break;
                        }
                    }

                    m = (leapMonth != 0 && t == leapMonth + 1)
                        ? ('闰'. this.chineseMonth(t-1))
                        : this.chineseMonth(((leapMonth != 0 && leapMonth + 1 < t) ? (t - 1) : t));
                }
                lunarArray.push(year, t, e); //年 月 日
                lunarArray.push(this.lunarYear(year),
                    this.zodiacYear(year),
                    m,
                    this.chineseNumber(e)); //天干地支年 生肖年 月份 日
                lunarArray.push(leapMonth); //闰几月
                return lunarArray;
            },
            //中文月份
            chineseMonth : function(month) {
                var monthHash = ['', '正月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '冬月', '腊月'];
                return monthHash[month];
            },
            //中文日期
            chineseNumber : function(num) {
                var dateHash = ['', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];
                if (num <= 10) {
                    res = '初'+ dateHash[num];
                } else if (num > 10 && num < 20) {
                    res = '十'+ dateHash[num-10];
                } else if (num == 20) {
                    res = "二十";
                } else if (num > 20 && num < 30) {
                    res = "廿"+ dateHash[num-20];
                } else if (num == 30) {
                    res = "三十";
                }
                return res;
            },
            //转换农历
            toLunar : function(year, month, day) {
                var yearData = this.lunarInfo[year - this.MIN_YEAR];
                if (year == this.MIN_YEAR && month <= 2 && day <= 9) {
                    return [1891, 1, 1, '辛卯', '兔', '正月', '初一'];
                }
                return this.lunarByBetween(year, this.betweenSolarDays(year, month, day, yearData[1], yearData[2]));
            },
            //转换公历
            //@param year 阴历-年
            //@param month 阴历-月，闰月处理：例如如果当年闰五月，那么第二个五月就传六月，相当于阴历有13个月
            //@param date 阴历-日
            toSolar : function(year, month, day) {
                var yearData = this.lunarInfo[year - this.MIN_YEAR];
                var between = this.betweenLunarDays(year, month, day);
                var ms = new Date(year +"-" + yearData[1] +"-"+ yearData[2]).getTime();
                var s = ms + between * 24 * 60 * 60 * 1000;
                var d = new Date();
                d.setTime(s);
                year = d.getFullYear();
                month = d.getMonth() + 1;
                day  = d.getDate();
                return [year, month, day];
            }
        };
        function marry(n){
            if(n==0){
                return "未婚"
            }else if(n==1){
                return "已婚"
            }else if(n==2){
                return "离异"
            }else if(n==3){
                return "丧偶"
            }else{
                return ""
            }
        }
        $(function(){
            var staffId=$.getQueryString('staffId');
            var dataTy='';
            if($.getQueryString('types') != undefined){
                $('.divPrint').show();
                $('.divClose').hide();
                dataTy={
                    userId:staffId
                }
            }else {
                $('.divPrint').hide();
                $('.divClose').show();
                dataTy={
                    staffId: staffId
                }
            }
            $.ajax({
                url: "<%=basePath%>/hr/api/getByStaffId",
                type: "get",
                data: dataTy,
                dataType: 'json',
                success: function (res){
                    if(res.flag){
                        if(res.object != null){
                            $('.spanName').html('('+res.object.staffName+')');
                            $('#table_personDetail').show();
                            $('.noData').hide();
                            $("#byName").html(res.object.byName);
                            $("#deptName").html(res.object.deptName);
                            $("#userPrivName").html(res.object.userPrivName);
                            $("#staffName").html(res.object.staffName);
                            $("#staffEName").html(res.object.staffEName);
                            $("#staffNo").html(res.object.staffNo);
                            $("#workNo").html(res.object.workNo);
                            $("#beforeName").html(res.object.beforeName);
                            $("#staffSex").html(res.object.staffSex==0?"男":"女");
                            $("#staffCardNo").html(res.object.staffCardNo);
                            if(res.object.staffBirth != '0000-00-00'){
                                $("#staffBirth").html(res.object.staffBirth);
                                $("#zodiac").html(zodiac(res.object.staffBirth,res.object.isLunar));
                                $("#constellation").html(constellation(res.object.staffBirth,res.object.isLunar)+"座");
                            }
                            if(res.object.isLunar==1){
                                $("#IS_LUNAR").html("(农历)");
                            }
                            $("#age").html(res.object.staffAge);
                            $("#leaveType").html(res.object.leaveType);
                            $("#staffNativePlace").html(res.object.staffNativePlaceName +res.object.staffNativePlace2);

                            $("#bloodType").html(res.object.bloodType);
                            $("#staffNationality").html(res.object.staffNationality);
                            $("#staffMaritalStatus").html(marry(res.object.staffMaritalStatus));
                            $("#staffHealth").html(res.object.staffHealth);
                            $("#staffPoliticalStatusName").html(res.object.staffPoliticalStatusName);
                            $("#joinPartyTime").html(res.object.joinPartyTime);
                            $("#staffType").html(staffType(res.object.staffType));
                            $("#staffDomicilePlace").html(res.object.staffDomicilePlace);
                            $("#workType").html(res.object.workType);
                            $("#administrationLevel").html(res.object.administrationLevel);
                            $("#staffOccupation").html(staffOccupation(res.object.staffOccupation));
                            $("#datesEmployed").html(res.object.datesEmployed);
                            $("#workJobStr").html(res.object.workJobStr);
                            $("#workStatus").html(workStatus(res.object.workStatus));
                            $("#staffPhone").html(res.object.staffPhone);
                            $("#dutyType").html("正常班");//考勤类型后台数据库无字段
                            $("#jobPosition").html(res.object.jobPositionStr);
                            $("#presentPosition").html(presentPosition(res.object.presentPosition));
                            $("#userdef5").html(userdef5(res.object.userdef5));
                            $("#workLevel").html(workLevel(res.object.workLevel));
                            $("#jobAge").html(res.object.jobAge);
                            $("#beginSalsryTime").html(res.object.beginSalsryTime);
                            $("#workAge").html(res.object.workAge);
                            $("#jobBeginning").html(res.object.jobBeginning);
                            $("#staffMobile").html(res.object.staffMobile);
                            $("#staffMsn").html(res.object.staffMsn);
                            $("#staffEmail").html(res.object.staffEmail);
                            $("#homeAddress").html("")//家庭住址
                            $("#staffQq").html(res.object.staffQq);
                            $("#otherContact").html(res.object.otherContact);
                            $("#isExperts").html(res.object.isExperts==1?"是":"否");
                            $("#researchResults1").html("")//研究领域
                            $("#partTime").html(res.object.partTime);
                            $("#researchResults").html(res.object.researchResults);
                            $("#directlySuperior").html(res.object.directlySuperiorName);
                            $("#directlyUnder").html(res.object.directlyUnderName);
                            $("#bank1").html(res.object.bank1);
                            $("#bankAccount1").html(res.object.bankAccount1);
                            $("#bank2").html(res.object.bank2);
                            $("#bankAccount2").html(res.object.bankAccount2);
                            $("#staffHighestSchool").html(staffHighestSchool(res.object.staffHighestSchool));
                            $("#staffHighestDegree").html(staffHighestDegree(res.object.staffHighestDegree));
                            $("#graduationDate").html(res.object.graduationDate);
                            $("#computerLevel").html(res.object.computerLevel);
                            $("#graduationSchool").html(res.object.graduationSchool);
                            $("#staffMajor").html(res.object.staffMajor);
                            $("#foreignLanguage1").html(res.object.foreignLanguage1);
                            $("#foreignLevel1").html(res.object.foreignLevel1);
                            $("#foreignLanguage2").html(res.object.foreignLanguage2);
                            $("#foreignLevel2").html(res.object.foreignLevel2);
                            $("#foreignLanguage3").html(res.object.foreignLanguage3);
                            $("#foreignLevel3").html(res.object.foreignLevel3);
                            $("#staffSkills").html(res.object.staffSkills);
                            $("#certificate").html(res.object.certificate);
                            $("#surety").html(res.object.surety);
                            $("#insure").html(res.object.insure);
                            $("#bodyExamim").html(res.object.bodyExamim);
                            $("#remark").html(res.object.remark);
                            $("#resume").html(res.object.resume);
                        }else{
                            $('#table_personDetail').hide();
                            $('.noData').show();
                        }

                    }

                }
            })

//            点击关闭
            $('.divClose').click(function () {
                window.close();
            });
//            点击打印
            $('.divPrint').click(function () {
                window.print();
            });
//            点击查看领用物品
            $('.lookWupin').click(function () {
                $.popWindow('/hr/query/listOfItems?userId='+staffId);
            })
        })
        //学历
        function staffHighestSchool(n){
            switch(n){
                case "1":
                    return "小学";
                case "2":
                    return "初中";
                case "3":
                    return "高中";
                case "4":
                    return "中专";
                case "5":
                    return "大专";
                case "6":
                    return "本科";
                case "7":
                    return "研究生";
                case "8":
                    return "博士";
                case "9":
                    return "博士后";
                case "11":
                    return "技校";
                default:
                    return "";
            }
        }
        //学位
        function staffHighestDegree(n){
            switch(n){
                case "1":
                    return "博士后";
                case "2":
                    return "博士";
                case "3":
                    return "MBA";
                case "4":
                    return "硕士";
                case "5":
                    return "双学士";
                case "6":
                    return "学士";
                case "7":
                    return "无";
                default:
                    return "";
            }
        }
        //职称级别
        function workLevel(n){
            switch(n){
                case "01":
                    return "初级";
                case "02":
                    return "中级";
                case "03":
                    return "副高";
                case "04":
                    return "正高";
                default:
                    return "";
            }
        }
        //职务级别
        function userdef5(n){
            switch(n){
                case "1":
                    return "科员";
                case "2":
                    return "副科";
                case "3":
                    return "正科";
                case "4":
                    return "副处";
                case "5":
                    return "正处";
                default:
                    return "";
            }
        }
        //职称
        function presentPosition(n){
            switch(n){
                case "01":
                    return "工程师";
                case "02":
                    return "助理工程师";
                case "03":
                    return "高级工程师";
                case "04":
                    return "研高工";
                case "07":
                    return "高级职称";
                case "08":
                    return "职称";
                default:
                    return "";
            }
        }
        //在职状态
        function workStatus(n){
            switch(n){
                case "01":
                    return "在职";
                case "02":
                    return "辞职";
                case "03":
                    return "离休";
                case "04":
                    return "退休";
                case "05":
                    return "借调";
                default:
                    return "";
            }

        }
        //员工类型
        function staffOccupation(n){
            switch(n){
                case "01":
                    return "合同工";
                case "02":
                    return "正式员工";
                case "03":
                    return "临时工";
                default:
                    return "";

            }
        }
        // 户口性质
        function staffType(n){
            switch (n){
                case "01":
                    return "本市城镇职工";
                case "02":
                    return "外埠城镇职工";
                case "03":
                    return "本市农民工";
                case "04":
                    return "外地农民工";
                case "05":
                    return "本市农村劳动力";
                case  "06":
                    return "外埠农村劳动力";
                default:
                    return ""
            }

        }
        //根据计算年龄,工龄，总工龄
        function age(n,m){
            var arr = n.split("-");
            if(m==1){
                arr = Lunar.toSolar(arr[0],arr[1],arr[2])
            }
            var nowyear = new Date();
            var birth = new Date(arr[0],arr[1]-1,arr[2]);
            var age = Math.ceil((nowyear-birth)/(1000*60*60*24*365));
            if(age<0){
                return
            }
            return age;
        };
        //计算生肖
        function zodiac(n,m){
            var arr = n.split("-");
            if(m==0){
                arr = Lunar.toLunar(arr[0],arr[1],arr[2])
            }
            return Lunar.zodiacYear(arr[0])

        };
        //计算星座
        function constellation(n,m){
            var arr1 = n.split("-");
            if(m==1){
                arr1 = Lunar.toSolar(arr[0],arr[1],arr[2])
            }
            var s="魔羯水瓶双鱼牡羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯";
            var arr=[20,19,21,21,21,22,23,23,23,23,22,22];
            return s.substr(arr1[1]*2-(arr1[2]<arr[arr1[1]-1]?2:0),2);

        }
    </script>
</html>


